package com.woniuxy.entity;



import java.time.LocalDateTime;
import java.util.Date;
import java.math.BigDecimal;

/**
* 
* @TableName order_run
*/
public class OrderRun {

    /**
    * 订单id
    */
    private Integer id;
    /**
    * 订单单号
    */
    private String orderNumber;
    /**
    * 发帖人id
    */
    private Integer userId;
    /**
    * 接单者id
    */
    private Integer takeUserId;
    /**
    * 订单状态（如：0 = 进行中,1 = 已完成，2 = 已结算,3 = 已取消）
    */
    private Integer orderStatus;
    /**
    * 订单创建时间
    */
    private LocalDateTime createTime;
    /**
    * 最后更新时间（用于乐观锁或数据同步）
    */
    private LocalDateTime updateTime;
    /**
    * 订单总金额（包含商品、运费、税费等）
    */
    private BigDecimal totalAmount;
    /**
    * 收货人姓名
    */
    private String receiverName;
    /**
    * 收货人手机号
    */
    private String receiverPhone;
    /**
    * 收货地址
    */
    private String receiverAddress;
    /**
    * 优惠券 ID（关联优惠券表，可为 NULL）
    */
    private Long couponId;
    //帖子id
    private Integer runId;

    public Integer getRunId() {
        return runId;
    }

    public void setRunId(Integer runId) {
        this.runId = runId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

//    public Date getCreateTime() {
//        return createTime;
//    }
//
//    public void setCreateTime(Date createTime) {
//        this.createTime = createTime;
//    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public Integer getTakeUserId() {
        return takeUserId;
    }

    public void setTakeUserId(Integer takeUserId) {
        this.takeUserId = takeUserId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

//    public Date getUpdateTime() {
//        return updateTime;
//    }
//
//    public void setUpdateTime(Date updateTime) {
//        this.updateTime = updateTime;
//    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
